{% extends "administrative/base.html" %}

{% block page_link %}
{#    <script src="../../static/administrative/js/examine.js"></script>#}
    <link rel="stylesheet" href="../../static/administrative/css/style.css">
{% endblock %}


{% block style %}
    <style>
        .add_class{
            background: #1E90FF;
        }
        .file {
            position: relative;
            display: inline-block;
            border-radius: 4px;
            padding: 4px 12px;
            overflow: hidden;
            color: #1E88C7;
            text-decoration: none;
            text-indent: 0;
            line-height: 20px;
        }
        .file input {
            position: absolute;
            font-size: 100px;
            right: 0;
            top: 0;
            opacity: 0;
        }
        .file:hover {
            background: #AADFFD;
            border-color: #78C3F3;
            color: #004974;
            text-decoration: none;
        }
        tr{
            height: 35px;
        }
        th{
            text-align: center;
        }
        table {
            table-layout: fixed;
        }
        td:first-child, th:first-child {
            position:sticky;
            left:0; /* 首行永远固定在左侧 */
            z-index:1;
        }
        thead tr th {
            position:sticky;
            top:0; /* 列首永远固定在头部  */
            background-color: #E8E8E8;
        }
        th:first-child{
            z-index:2;
        }
        .li-class{
            list-style: none;
            margin-top: 2%;
            color: #0b0b0b;
            cursor: pointer;
        }
        .preserve{
            height: 30px;width: 90%;background: #0070c1;color: #ffffff;border-radius: 3px
        }
        .chooseBtn {
            display: none;
        }

        .choose-label {
            box-shadow: #ccc 0 0 0 1px;
            width: 40px;
            height: 20px;
            display: inline-block;
            border-radius: 20px;
            position: relative;
            background-color: #bdbdbd;
            overflow: hidden;
        }

        .choose-label:before {
            content: '';
            position: absolute;
            left: 0;
            width: 20px;
            height: 20px;
            display: inline-block;
            border-radius: 20px;
            background-color: #fff;
            z-index: 20;
            -webkit-transition: all 0.5s;
            transition: all 0.5s;
        }

        .chooseBtn:checked + label.choose-label:before {
            left: 20px;
        }

        .chooseBtn:checked + label.choose-label {
            background-color: #51ccee;
        }
    </style>
{% endblock %}



{% block right_content %}
    <div class="headline">
        <div style="width: 15%;height: 100%;line-height: 40px;float: left;padding-left: 1%;">
            <a href="document.html" style="color: #0b0b0b;">
                <i class="iconfont icon-gongwenfawen"></i>
                <span id="span_title"> 待办公文</span>
            </a>
        </div>
        <div id="submit_div" style="width: 7%;text-align: center;height: 100%;line-height: 40px;float: right;">
            <button id="add_station" type="button" class="btn btn-default add-station preserve"
                    onclick="update_docment()">修改重提
            </button>
        </div>

    </div>

    <div class="right-box" style="width: 100%;height: 91%;padding-bottom: 1%;">
        <div style="width: 80%;height: 100%;margin-top: 1%;margin-left: 1%;display: inline-block;overflow: auto;">
            <div style="width: 99%;background: white;">
                <div style="width: 100%;">
                    <div id="manuscript_paper_1" style="width: 100%;height: 95%;"><!--startprint-->
                        <table style="width: 100%;">
                            <tr>
                                <td style="text-align: center;height: 60px;line-height: 60px;width: 100%;"><h3 style="font-family: 'Songti TC'">京&nbsp;山&nbsp;市&nbsp;人&nbsp;民&nbsp;医&nbsp;院&nbsp;发&nbsp;文&nbsp;稿&nbsp;纸</h3></td>
                            </tr>
                        </table>
                        <div style="padding-left: 1%;padding-right: 1%;width: 100%;color: #0b0b0b;">
                            <table style="width: 90%;margin-left: 5%;">
                                <tr style="width: 100%;">
                                    <td style="height: 100px;width: 50%;border-top: black solid 2px;border-right: black solid 1px;padding-left: 10px;">
                                        <p>签&nbsp;&nbsp;&nbsp;&nbsp;发:</p>
                                        <div id="signature_issuer"></div>
                                    </td>
                                    <td style="height: 100px;width: 50%;border-top: black solid 2px;padding-left: 10px;">
                                        <p>分管领导意见:</p>
                                        <div id="signature_of_leaders"></div>
                                    </td>
                                </tr>
                                <tr style="width: 100%;">
                                    <td style="height: 100px;width: 50%;border-top: black solid 1px;border-right: black solid 1px;padding-left: 10px;">
                                        <p>会核意见:</p>
                                        <div id="nuclear_opinion" style="width: 100%;height: 125px;margin-top: 3%;visibility: hidden;">
                                            <textarea name="" id="Will_nuclear_opinion" cols="10" rows="4" style="width: 95%;"></textarea>
                                        </div>
                                    </td>
                                    <td style="height: 100px;width: 50%;border-top: black solid 1px;margin: 0;padding: 0;">
                                        <div style="margin-left: 10px;">
                                            <p>审稿人:</p>
                                            <div id="signature_Reviewer"></div>
                                        </div>

                                        <div style="width: 100%;border-top: black solid 1px;"></div>

                                        <div style="margin-left: 10px;margin-top: 5px;">
                                            <p>拟稿单位及拟稿人:</p>
                                            <div style="width: 100%;height: 40px;margin-top: 3%;">
                                                <span id="is_department"></span>
                                                <span id="drafter" style="margin-left: 5%;"></span>
                                            </div>
                                        </div>
                                    </td>
                                </tr>
                            </table>

                            <table style="width: 90%;margin-left: 5%;">
                                <tr style="width: 100%;">
                                    <td style="height: 100px;border-top: black solid 1px;padding-left: 10px;border-bottom: black solid 1px;">
                                        <p>会&nbsp;&nbsp;&nbsp;&nbsp;签:</p>
                                        <div id="signature_Countersigned"></div>
                                    </td>
                                </tr>

                                <tr>
                                    <td style="height: 100px;border-top: black solid 1px;padding-left: 10px;border-bottom: black solid 1px;">
                                        <p>抄送机关:</p>
                                        <div id="cc_unit" style="width: 100%;height: 50px;padding-left: 1%;"></div>
                                    </td>
                                </tr>
                            </table>

                            <table style="width: 90%;margin-left: 5%;">
                                <tr>
                                    <td id="post_number" style="width: 10%;padding-left: 10px;border-bottom: black solid 1px;border-right: black solid 1px;height: 40px;">
                                    </td>

                                    <td style="width: 10%;padding-left: 10px;border-bottom: black solid 1px;height: 40px;">
                                        印发份数:<div id="printed_copies" style="display: inline-block;border: none;padding-left: 1%;"></div>
                                    </td>
                                </tr>
                            </table>

                            <table style="width: 90%;margin-left: 5%;">
                                <tr>
                                    <td style="height: 100px;padding-left: 10px;border-bottom: black solid 1px;">
                                        <p>标&nbsp;&nbsp;&nbsp;&nbsp;题:</p>
                                        <div id="title" style="width: 100%;height: 50px;padding-left: 1%;">
                                        </div>
                                    </td>
                                </tr>
                            </table>
                        </div>
                        <!--endprint-->
                    </div>

                    <div id="manuscript_paper_2" style="width: 100%;display: none;"><!--startprint-->
                        <table style="width: 90%;margin-left: 5%;">
                            <tr>
                                <td style="text-align: center;height: 60px;line-height: 60px;width: 100%;"><h3
                                        style="font-family: 'Songti TC'">京&nbsp;山&nbsp;市&nbsp;人&nbsp;民&nbsp;医&nbsp;院&nbsp;文&nbsp;稿&nbsp;纸</h3>
                                </td>
                            </tr>
                        </table>
                        <table style="width: 90%;margin-left: 5%;">
                            <hr style="border: 1px solid #0b0b0b;width: 90%;margin-left: 5%;">
                        </table>

                        <div style="border-top: #0b0b0b solid 0.5px;width: 90%;margin-top: 2px;margin-left: 5%;"></div>

                        <table style="width: 90%;margin-left: 5%;color: #0b0b0b;">
                            <tr>
                                <td style="height: 100px;width: 100%;border-bottom: #0b0b0b solid 1px;padding-left: 1%;">
                                    <p style="margin: 0;">事由：</p>
                                    <div id="title_1" style="width: 100%;border: none;height: 90px;line-height: 90px;"></div>
                                </td>
                            </tr>
                        </table>

                        <table style="width: 90%;margin-left: 5%;color: #0b0b0b;">
                            <tr>
                                <td style="height: 100px;width: 100%;border-bottom: #0b0b0b solid 1px;padding-left: 1%;">
                                    <p>
                                        <label>主送机关：</label>
                                        <input id="lord_send_unit_1" type="text" style="width: 50%;border: none;color: black;">
                                    </p>
                                    <p style="margin-top: 30px">
                                        <label>抄送机关：</label>
                                        <input id="cc_unit_1" type="text" style="width: 50%;border: none;">
                                    </p>
                                </td>
                            </tr>
                        </table>

                        <table style="width: 90%;margin-left: 5%;color: #0b0b0b;">
                            <tr>
                                <td style="height: 100px;width: 30%;border-bottom: #0b0b0b solid 1px;padding-left: 1%;border-right: #0b0b0b solid 1px;">
                                    <p style="vertical-align: top;">签发：</p>
                                    <div id="signature_issuer_2_1"></div>
                                </td>

                                <td style="height: 100px;width: 15%;border-bottom: #0b0b0b solid 1px;padding-left: 1%;border-right: #0b0b0b solid 1px;">
                                    <p style="vertical-align: top;">分管领导：</p>
                                    <div id="signature_issuer_2_2"></div>
                                </td>

                                <td style="height: 100px;width: 15%;border-bottom: #0b0b0b solid 1px;padding-left: 1%;border-right: #0b0b0b solid 1px;">
                                    <p style="vertical-align: top;">会核：</p>
                                    <div id="signature_issuer_2_3"></div>
                                </td>

                                <td style="height: 100px;width: 15%;border-bottom: #0b0b0b solid 1px;padding-left: 1%;">
                                    <p style="vertical-align: top;">拟稿：</p>
                                    <div style="width: 100%;height: 40px;margin-top: 3%;line-height: 40px;">
                                        <input id="drafter_1" style="border: none;">
                                    </div>
                                </td>
                            </tr>
                        </table>

                        <table style="width: 90%;margin-left: 5%;color: #0b0b0b;">
                            <tr>
                                <td style="width: 60%;border-bottom: #0b0b0b solid 1px;padding-left: 1%;height: 40px;">
                                    <label>文号：</label>
                                    <input id="post_number_2" type="text" style="width: 60%;border: none;">
                                </td>

                                <td style="width: 35%;border-bottom: #0b0b0b solid 1px;padding-left: 1%;height: 40px;">
                                    <label>附件：</label>
                                    <input id="accessory_2" type="text" style="width: 50%;border: none;">
                                </td>
                            </tr>
                        </table>

                        <table style="width: 90%;margin-left: 5%;color: #0b0b0b;">
                            <tr>
                                <td style="border-bottom: #0b0b0b solid 1px;width: 20%;padding-left: 1%;vertical-align: center;height: 40px;">
                                    <label>打字：</label>
                                </td>

                                <td style="border-bottom: #0b0b0b solid 1px;width: 20%;padding-left: 1%;vertical-align: center;">
                                    <label>校对：</label>
                                    <div style="width: 40%;display: inline-block;">
                                    </div>
                                </td>

                                <td style="border-bottom: #0b0b0b solid 1px;width: 20%;padding-left: 1%;vertical-align: center;">
                                    <span>共印</span><input id="printed_copies_1" type="text"
                                                          style="text-align: center;border: none;width: 75%;"><span>份</span>
                                </td>
                            </tr>
                        </table>

                        <table style="width: 90%;margin-left: 5%;color: #0b0b0b;">
                            <tr>
                                <td style="border-bottom: #0b0b0b solid 1px;width: 100%;padding-left: 1%;">
                                    <input type="text" style=";border: none;width: 100%;height: 40px;">
                                </td>
                            </tr>
                            <tr>
                                <td style="border-bottom: #0b0b0b solid 1px;width: 100%;padding-left: 1%;">
                                    <input type="text" style=";border: none;width: 100%;height: 40px;">
                                </td>
                            </tr>
                            <tr>
                                <td style="border-bottom: #0b0b0b solid 1px;width: 100%;padding-left: 1%;">
                                    <input type="text" style=";border: none;width: 100%;height: 40px;">
                                </td>
                            </tr>
                            <tr>
                                <td style="border-bottom: #0b0b0b solid 1px;width: 100%;padding-left: 1%;">
                                    <input type="text" style=";border: none;width: 100%;height: 40px;">
                                </td>
                            </tr>
                            <tr>
                                <td style="border-bottom: #0b0b0b solid 1px;width: 100%;padding-left: 1%;">
                                    <input type="text" style=";border: none;width: 100%;height: 40px;">
                                </td>
                            </tr>
                            <tr>
                                <td style="border-bottom: #0b0b0b solid 1px;width: 100%;padding-left: 1%;">
                                    <input type="text" style=";border: none;width: 100%;height: 40px;">
                                </td>
                            </tr>
                            <tr>
                                <td style="border-bottom: #0b0b0b solid 1px;width: 100%;padding-left: 1%;">
                                    <input type="text" style=";border: none;width: 100%;height: 40px;">
                                </td>
                            </tr>
                            <tr>
                                <td style="border-bottom: #0b0b0b solid 2px;width: 100%;padding-left: 1%;">
                                    <input type="text" style=";border: none;width: 100%;height: 40px;">
                                </td>
                            </tr>
                        </table>
                        <!--endprint-->
                    </div>

                    <div id="manuscript_paper_3" style="width: 100%;display: none;"><!--startprint-->
                        <table style="width: 90%;margin-left: 5%;">
                            <tr>
                                <td style="text-align: center;height: 60px;line-height: 60px;width: 100%;"><h3 style="font-family: 'Songti TC'">中共京山市人民医院委员会文件拟稿纸</h3></td>
                            </tr>
                        </table>

                        <table style="width: 90%;margin-left: 5%;color: #0b0b0b;">
                            <tr>
                                <td style="width: 30%;border-bottom: #0b0b0b solid 1px;padding-left: 1%;border-top: #0b0b0b solid 1px;border-right: #0b0b0b solid 1px;height: 40px;">
                                    <label>文号：</label>
                                    <div id="wenhao_3" style="display: inline-block;"></div>
                                </td>

                                <td style="width: 10%;border-bottom: #0b0b0b solid 1px;padding-left: 1%;border-top: #0b0b0b solid 1px;border-right: #0b0b0b solid 1px;text-align: center;">
                                    <label>密级</label>
                                </td>

                                <td style="width: 10%;border-bottom: #0b0b0b solid 1px;padding-left: 1%;border-top: #0b0b0b solid 1px;border-right: #0b0b0b solid 1px;">
                                    <div id="accuracy_class_1" style="display: inline-block;"></div>
                                </td>

                                <td style="width: 20%;border-bottom: #0b0b0b solid 1px;padding-left: 1%;border-top: #0b0b0b solid 1px;">
                                    <label>印份</label>
                                    <div id="printed_copies_2" style="display: inline-block;width: 80px;text-align: center;"></div>
                                </td>
                            </tr>
                        </table>

                        <table style="width: 90%;margin-left: 5%;color: #0b0b0b;">
                            <tr>
                                <td style="height: 100px;width: 100%;border-bottom: #0b0b0b solid 1px;padding-left: 1%;">
                                    <p style="margin: 0;">事由：</p>
                                    <div id="title_2" style="width: 100%;border: none;height: 90px"></div>
                                </td>
                            </tr>
                        </table>

                        <table style="width: 90%;margin-left: 5%;color: #0b0b0b;">
                            <tr>
                                <td style="height: 100px;width: 60%;border-bottom: #0b0b0b solid 1px;padding-left: 1%;border-right: #0b0b0b solid 1px;">
                                    <div>
                                        <label>主送：</label>
                                        <div id="lord_send_unit_2" style="display: inline-block;"></div>
                                    </div>
                                    <hr style="margin-left: -1%;border-top: 1px solid #0b0b0b;">
                                    <div>
                                        <label>抄报（抄送）：</label>
                                        <div id="cc_unit_2" style="display: inline-block;"></div>
                                    </div>
                                </td>

                                <td style="height: 100px;width: 30%;border-bottom: #0b0b0b solid 1px;padding-left: 1%;">
                                    <p style="margin: 0;">附件：</p>
                                    <div id="accessory_1" style="width: 100%;border: none;height: 60px"></div>
                                </td>
                            </tr>
                        </table>

                        <table style="width: 90%;margin-left: 5%;color: #0b0b0b;">
                            <tr>
                                <td style="height: 100px;width: 30%;border-bottom: #0b0b0b solid 1px;padding-left: 1%;border-right: #0b0b0b solid 1px;">
                                    <p style="margin: 0;">拟稿单位：</p>
                                    <div id="is_department_2" style="height: 80px;line-height: 80px;"></div>
                                </td>

                                <td style="height: 100px;width: 30%;border-bottom: #0b0b0b solid 1px;padding-left: 1%;border-right: #0b0b0b solid 1px;">
                                    <p style="margin: 0;">拟稿人：</p>
                                    <div id="drafter_2" style="height: 40px;line-height: 40px;"></div>
                                    <p style="width: 100%;text-align: right;height: 40px;padding-right: 2%;">
                                        <input id="year-1" type="text" style="border: none;width: 50px;text-align: center;">年<input id="month-1" type="text" style="border: none;width: 50px;text-align: center;">月<input id="day-1" type="text" style="text-align: center;border: none;width: 50px;">日
                                    </p>
                                </td>

                                <td style="height: 100px;width: 30%;border-bottom: #0b0b0b solid 1px;padding-left: 1%;">
                                    <p style="margin: 0;">核稿人：</p>
                                    <div id="signature_issuer_3_1"></div>
                                    <p style="width: 100%;text-align: right;height: 40px;padding-right: 2%;">
                                        <input id="year-2" type="text" style="width: 50px;border: none;text-align: center;">年<input id="month-2" type="text" style="width: 50px;border: none;text-align: center;">月<input id="day-2" type="text" style="border: none;width: 50px;text-align: center;">日
                                    </p>
                                </td>
                            </tr>
                        </table>

                        <table style="width: 90%;margin-left: 5%;color: #0b0b0b;">
                            <tr>
                                <td style="height: 100px;width: 50%;border-bottom: #0b0b0b solid 1px;padding-left: 1%;border-right: #0b0b0b solid 1px;">
                                    <label>分管领导意见：</label>
                                    <div id="signature_issuer_3_2"></div>
                                    <p style="width: 100%;text-align: right;height: 20px;padding-right: 2%;">
                                        <input id="year-3" type="text" style="width: 50px;border: none;text-align: center;">年<input id="month-3" type="text" style="width: 50px;border: none;text-align: center;">月<input id="day-3" type="text" style="border: none;width: 50px;text-align: center;">日
                                    </p>
                                </td>

                                <td style="height: 100px;width: 50%;border-bottom: #0b0b0b solid 1px;padding-left: 1%;">
                                    <p style="margin: 0;">会签：</p>
                                    <div id="signature_issuer_3_3"></div>
                                </td>
                            </tr>
                        </table>

                        <table style="width: 90%;margin-left: 5%;color: #0b0b0b;">
                            <tr>
                                <td style="height: 15px;width: 100%;border-bottom: #0b0b0b solid 1px;padding-left: 1%;">
                                    <p style="margin: 0;">领导签发：</p>
                                    <div id="signature_issuer_3_4"></div>
                                    <p style="width: 100%;text-align: right;height: 30px;padding-right: 2%;">
                                        <input id="year-4" type="text" style="width: 50px;border: none;text-align: center;">年<input id="month-4" type="text" style="width: 50px;border: none;text-align: center;">月<input id="day-4" type="text" style="border: none;width: 50px;text-align: center;">日
                                    </p>
                                </td>
                            </tr>
                        </table>

                        <table style="width: 90%;margin-left: 5%;color: #0b0b0b;">
                            <tr>
                                <td style="border-bottom: #0b0b0b solid 1px;width: 100%;padding-left: 1%;">
                                    <input type="text" style=";border: none;width: 100%;height: 40px;">
                                </td>
                            </tr>
                            <tr>
                                <td style="border-bottom: #0b0b0b solid 1px;width: 100%;padding-left: 1%;">
                                    <input type="text" style=";border: none;width: 100%;height: 40px;">
                                </td>
                            </tr>
                            <tr>
                                <td style="border-bottom: #0b0b0b solid 1px;width: 100%;padding-left: 1%;">
                                    <input type="text" style=";border: none;width: 100%;height: 40px;">
                                </td>
                            </tr>
                            <tr>
                                <td style="border-bottom: #0b0b0b solid 1px;width: 100%;padding-left: 1%;">
                                    <input type="text" style=";border: none;width: 100%;height: 40px;">
                                </td>
                            </tr>
                            <tr>
                                <td style="border-bottom: #0b0b0b solid 1px;width: 100%;padding-left: 1%;">
                                    <input type="text" style=";border: none;width: 100%;height: 40px;">
                                </td>
                            </tr>
                            <tr>
                                <td style="border-bottom: #0b0b0b solid 2px;width: 100%;padding-left: 1%;">
                                    <input type="text" style=";border: none;width: 100%;height: 40px;">
                                </td>
                            </tr>
                        </table>
                    <!--endprint-->
                    </div>

                    <div id="manuscript_paper_4" style="width: 100%;display: none;"><!--startprint-->
                        <table style="width: 90%;margin-left: 5%;">
                            <tr>
                                <td style="text-align: center;height: 60px;line-height: 60px;width: 100%;"><h3
                                        style="font-family: 'Songti TC'">华中科技大学协和京山医院文件拟稿纸</h3></td>
                            </tr>
                        </table>

                        <table style="width: 90%;margin-left: 5%;color: #0b0b0b;">
                            <tr>
                                <td style="width: 25%;border: #0b0b0b solid 1px;padding-left: 1%;text-align: right;padding-right: 2%;">
                                    <div id="wenhao-4"></div>
                                </td>

                                <td style="width: 10%;border: #0b0b0b solid 1px;padding-left: 1%;border-left: none;text-align: center;">
                                    密级
                                </td>

                                <td style="width: 15%;border: #0b0b0b solid 1px;padding-left: 1%;border-left: none;">
                                    <div id="accuracy_class_4" style="width: 100%;border: none;"></div>
                                </td>

                                <td style="width: 10%;border: #0b0b0b solid 1px;padding-left: 1%;border-left: none;text-align: center;">
                                    紧急
                                </td>

                                <td style="width: 15%;border: #0b0b0b solid 1px;padding-left: 1%;border-left: none;">
                                    <div id="urgency_degree" type="text" style="width: 100%;border: none;"></div>
                                </td>

                                <td style="width: 10%;border: #0b0b0b solid 1px;padding-left: 1%;border-left: none;text-align: center;">
                                    印份
                                </td>

                                <td style="width: 15%;border: #0b0b0b solid 1px;padding-left: 1%;border-left: none;">
                                    <div id="printed_copies_4" type="text" style="width: 100%;border: none;"></div>
                                </td>
                            </tr>
                        </table>

                        <table style="width: 90%;margin-left: 5%;color: #0b0b0b;">
                            <tr>
                                <td style="height: 100px;width: 100%;border: #0b0b0b solid 1px;padding-left: 1%;border-top: none;">
                                    <div>
                                        <label>标&nbsp;&nbsp;&nbsp;&nbsp;题：</label>
                                        <div id="title_4" type="text" style="width: 80%;border: none;display: inline-block;"></div>
                                    </div>
                                    <div style="margin-top: 30px">
                                        <label>主题词：</label>
                                        <div id="subject_term_id" type="text" style="width: 80%;border: none;display: inline-block;"></div>
                                    </div>
                                </td>
                            </tr>
                        </table>

                        <table style="width: 90%;margin-left: 5%;color: #0b0b0b;">
                            <tr>
                                <td style="height: 100px;width: 50%;border: #0b0b0b solid 1px;padding-left: 1%;border-top: none;">
                                    <div>
                                        <label>主 送：</label>
                                        <div id="lord_send_unit_4" style="width: 80%;border: none;display: inline-block;"></div>
                                    </div>
                                    <hr style="margin-left: -1%;border-top: 1px solid #0b0b0b;">
                                    <div>
                                        <label>抄 送：</label>
                                        <div id="cc_unit_4" style="width: 75%;border: none;display: inline-block;"></div>
                                    </div>
                                </td>

                                <td style="height: 100px;width: 50%;border: #0b0b0b solid 1px;padding-left: 1%;border-top: none;border-left: none;">
                                    <p style="margin: 0;">附 件：</p>
                                    <div id="accessory_4" style="width: 100%;border: none;height: 90px;"></div>
                                </td>
                            </tr>
                        </table>

                        <table style="width: 90%;margin-left: 5%;color: #0b0b0b;">
                            <tr>
                                <td style="height: 50px;border: #0b0b0b solid 1px;padding-left: 1%;border-top: none;margin: 0;width: 15%;">
                                    拟稿单位：
                                </td>
                                <td style="border: #0b0b0b solid 1px;padding-left: 1%;border-top: none;margin: 0;width: 35%;">
                                    <div id="is_department_4" style="width: 100%;height: 60px;margin-top: 3%;line-height: 60px;text-align: center"></div>
                                </td>
                                <td style="border: #0b0b0b solid 1px;padding-left: 1%;border-top: none;margin: 0;width: 15%;">
                                    拟稿人：
                                </td>
                                <td style="border: #0b0b0b solid 1px;padding-left: 1%;border-top: none;margin: 0;width: 35%;">
                                    <div style="width: 100%;height: 30px;margin-top: 3%;line-height: 30px;text-align: center">
                                        <div id="drafter_4" style="width: 100%;"></div>
                                    </div>
                                    <p style="text-align: right;height: 30px;padding-right: 2%;">
                                        <input id="year-4-1" type="text" style="width: 50px;border: none;text-align: center;">年
                                        <input id="month-4-1" type="text" style="width: 30px;border: none;text-align: center;">月
                                        <input id="day-4-1" type="text" style="border: none;width: 30px;text-align: center;">日
                                    </p>
                                </td>
                            </tr>
                        </table>

                        <table style="width: 90%;margin-left: 5%;color: #0b0b0b;">
                            <tr>
                                <td style="border: #0b0b0b solid 1px;padding-left: 1%;border-top: none;margin: 0;width: 15%;">
                                    <p style="margin: 0;">核&nbsp;&nbsp;稿&nbsp;&nbsp;人：</p>
                                </td>
                                <td style="border: #0b0b0b solid 1px;padding-left: 1%;border-top: none;margin: 0;border-left: none;width: 85%;">
                                    <div id="signature_issuer_4_1"></div>
                                    <p style="text-align: right;height: 30px;padding-right: 1%;width: 100%;">
                                        <input id="year-4-2" type="text" style="width: 50px;border: none;text-align: center;">年
                                        <input id="month-4-2" type="text" style="width: 30px;border: none;text-align: center;">月
                                        <input id="day-4-2" type="text" style="border: none;width: 30px;text-align: center;">日
                                    </p>
                                </td>
                            </tr>
                            <tr>
                                <td style="height: 100px;border: #0b0b0b solid 1px;padding-left: 1%;border-top: none;width: 15%;">
                                    <label>分管领导：</label>
                                </td>
                                <td style="border: #0b0b0b solid 1px;padding-left: 1%;border-top: none;margin: 0;border-left: none;width: 85%;">
                                    <div id="signature_issuer_4_2"></div>
                                    <p style="text-align: right;height: 30px;padding-right: 1%;width: 100%;">
                                        <input id="year-4-3" type="text" style="width: 50px;border: none;text-align: center;">年
                                        <input id="month-4-3" type="text" style="width: 30px;border: none;text-align: center;">月
                                        <input id="day-4-3" type="text" style="border: none;width: 30px;text-align: center;">日
                                    </p>
                                </td>
                            </tr>
                            <tr>
                                <td style="height: 100px;border: #0b0b0b solid 1px;padding-left: 1%;border-top: none;width: 15%;">
                                    <p style="margin: 0;">会&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;签：</p>
                                </td>
                                <td style="border: #0b0b0b solid 1px;padding-left: 3%;border-top: none;margin: 0;border-left: none;width: 85%;">
                                    <div id="signature_issuer_4_3"></div>
                                </td>
                            </tr>
                        </table>

                        <table style="width: 90%;margin-left: 5%;color: #0b0b0b;">
                            <tr>
                                <td style="height: 300px;width: 100%;border: #0b0b0b solid 1px;padding-left: 1%;border-top: none;">
                                    <label>领导签发：</label>
                                    <div id="signature_issuer_4_4" style="height: 180px;display: none;"></div>
                                </td>
                            </tr>
                        </table>

                    <!--endprint-->
                    </div>
                </div>

                <div style="height: 30px;"></div>
            </div>

            <div style="width: 99%;background: white;margin-top: 1%;padding: 1%;color: #0b0b0b;">
                <div style="width: 100%;height: 50px;text-align: center;">
                    <h4 style="color: #0b0b0b;">正文文件</h4>
                </div>

                <table style="width: 90%;margin-left: 5%;">
                    <tr style="margin-left: 1%;">
                        <td style="width: 8%;border: black solid 0.5px;height: 35px;line-height: 35px;text-align: right;">
                            更改模板：
                        </td>
                        <td style="width: 30%;border: black solid 0.5px;padding-left: 0.5%;">
                            <input type="checkbox" name="sex" id="male" class="chooseBtn" onclick="show_or_not()">
                            <label for="male" class="choose-label"></label>
                        </td>
                    </tr>
                    <tr id="chose_model" style="margin-left: 1%;display: none;">
                        <td style="width: 8%;border: black solid 0.5px;height: 35px;line-height: 35px;text-align: right;">
                            选择模版：
                        </td>
                        <td style="width: 30%;border: black solid 0.5px;padding-left: 0.5%;">
                            <a href="javascript:;" style="text-decoration: none;margin-left: 2%;" onclick="admin_add('选择模板','admin-add','800','500')"> 选择模板</a>
                        </td>
                    </tr>
{#                    <tr style="margin-left: 1%;">#}
{#                        <td style="width: 8%;border: black solid 0.5px;height: 35px;line-height: 35px;text-align: right;">正文：</td>#}
{#                        <td style="width: 68%;border: black solid 0.5px;height: 35px;line-height: 35px;padding-left: 1%;cursor: pointer;color: #cfcfcf;">#}
{#                            <div id="attachment_list" style="font-size: 0;margin: 0;padding: 0;display: inline-block;vertical-align: top;">#}
{#                                <ul style="width: 100%;padding: 0;">#}
{#                                    <li style="list-style: none;width: 100%;font-size: 14px;padding: 0;"><a id="main_body_a" href="{{ examine_dict.main_body.href }}">{{ examine_dict.main_body.name }}</a></li>#}
{#                                </ul>#}
{#                            </div>#}
{#                            <div id="attachment_list_1" style="font-size: 0;margin: 0;padding: 0;display: inline-block;float: right;width: 200px;">#}
{#                                <div style="display: inline-block;vertical-align: top;">#}
{#                                    <a href="javascript:;" class="file" style="vertical-align:middle;font-size: 14px;border: #A9A9A9 solid 1px;">#}
{#                                        上传正文#}
{#                                        <input type="file" name="main_body" id="main_body"#}
{#                                               onchange="upload_accessory(this.id)">#}
{#                                    </a>#}
{#                                </div>#}
{#                                <div style="display: inline-block;vertical-align: top;margin-left: 3%;margin-top: 3px;">#}
{#                                    <button onclick="del_original()" style="width: 100px;height: 30px;border: #A9A9A9 solid 1px;border-radius: 4px;font-size: 14px;line-height: 30px;">删除原文</button>#}
{#                                </div>#}
{#                            </div>#}
{#                        </td>#}
{#                    </tr>#}
                </table>

                <div style="margin-top: 2%;width: 90%;margin-left: 5%;">
                    <label style="vertical-align: top;"> 正&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;文：</label>
                    <a href="javascript:;" class="file" style="display: inline-block;vertical-align: top;">
                        上传正文
                        <input type="file" name="main_body" id="main_body" onchange="upload_accessory(this.id, 'TTables')">
                    </a>
                </div>

                <div style="margin-top: 1%;width: 90%;margin-left: 5%;">
                    <div style="border: #00d0ff solid 1px;display: inline-block;vertical-align: top;width: 100%;">
                        <table class="table table-hover table-bordered" style="border-collapse: collapse;width: 100%;">
                            <thead>
                            <tr>
                                <th scope="col" style="width: 8%;border-right-color: white;">序号</th>
                                <th scope="col" style="width: 30%;border-right-color: white;">文件名称</th>
                                <th scope="col" style="width: 8%;border-right-color: white;">文件大小</th>
                                <th scope="col" style="width: 5%;">操作</th>
                            </tr>
                            </thead>
                            <tbody style="overflow: auto;" id="TTables"></tbody>
                        </table>
                    </div>
                </div>

                <div style="margin-top: 2%;width: 90%;margin-left: 5%;">
                    <label style="vertical-align: top;"> 附&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;件：</label>
                    <a href="javascript:;" class="file" style="display: inline-block;vertical-align: top;">
                        上传附件
                        <input type="file" name="accessory" id="accessory" onchange="upload_accessory(this.id, 'TTables_1')">
                    </a>
                </div>

                <div style="margin-top: 1%;width: 90%;margin-left: 5%;">
                    <div style="border: #00d0ff solid 1px;display: inline-block;vertical-align: top;width: 100%;">
                        <table class="table table-hover table-bordered" style="border-collapse: collapse;width: 100%;">
                            <thead>
                            <tr>
                                <th scope="col" style="width: 8%;border-right-color: white;">序号</th>
                                <th scope="col" style="width: 30%;border-right-color: white;">文件名称</th>
                                <th scope="col" style="width: 8%;border-right-color: white;">文件大小</th>
                                <th scope="col" style="width: 5%;">操作</th>
                            </tr>
                            </thead>
                            <tbody style="overflow: auto;" id="TTables_1"></tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>

        <!-- 流程图 -->
        <div style="width: 17%;height: 100%;margin-left: 1%;display: inline-block;vertical-align: top;margin-top: 1%;background: white;padding: 2%;overflow: auto;">
            <div style="width: 100%;text-align: center;"><button style="border: #cfcfcf solid 0.5px;border-radius: 7px;width: 50%;height: 40px;color: green;"><i class="iconfont icon-kaishi"></i>开始</button></div>
            <div style="width: 100%;text-align: center;font-size: 28px;">&#8595;</div>
            <div style="width: 100%;text-align: center;"><button style="border: #cfcfcf solid 0.5px;border-radius: 7px;width: 70%;height: 40px;">发文拟稿</button></div>
            <div style="width: 100%;text-align: center;font-size: 28px;">&#8595;</div>
            <div style="width: 100%;text-align: center;"><button id="FW-hegao" style="border: #cfcfcf solid 0.5px;border-radius: 7px;width: 70%;height: 40px;">发文核稿</button></div>
            <div style="width: 100%;text-align: center;font-size: 28px;">&#8595;</div>
            <div style="width: 100%;text-align: center;"><button id="FG_leader" style="border: #cfcfcf solid 0.5px;border-radius: 7px;width: 70%;height: 40px;">分管领导</button></div>
            <div style="width: 100%;text-align: center;font-size: 28px;" id="huiqian_arrows">&#8595;</div>
            <div style="width: 100%;text-align: center;" id="huiqian"><button id="QF_countersign" style="border: #cfcfcf solid 0.5px;border-radius: 7px;width: 70%;height: 40px;">发文会签</button></div>
            <div style="width: 100%;text-align: center;font-size: 28px;">&#8595;</div>
            <div style="width: 100%;text-align: center;"><button id="FW_issue" style="border: #cfcfcf solid 0.5px;border-radius: 7px;width: 70%;height: 40px;">发文签发</button></div>
            <div style="width: 100%;text-align: center;font-size: 28px;">&#8595;</div>
            <div style="width: 100%;text-align: center;"><button id="FF_chromatography" style="border: #cfcfcf solid 0.5px;border-radius: 7px;width: 70%;height: 40px;">套红分发</button></div>
            <div style="width: 100%;text-align: center;font-size: 28px;">&#8595;</div>
            <div style="width: 100%;text-align: center;"><button style="border: #cfcfcf solid 0.5px;border-radius: 7px;width: 50%;height: 40px;color: green;"><i class="iconfont icon-jieshu"></i>结束</button></div>
        </div>

    </div>

    <button id="sour_del" style="display: none;" data-toggle="modal" data-target=".bd-example-modal-sm"></button>
    <!--确认删除？-->
    <div class="modal fade bd-example-modal-sm" tabindex="-1" role="dialog" aria-hidden="true">
        <div class="modal-dialog modal-sm" style="margin-top: 10%;">
            <div class="modal-content" style="height: 150px;border-radius: 7px;width: 300px;background: #F8F8FF;border: #1E90FF solid 1px;">
                <div class="modal-header" style="height: 40px;background: #1E90FF;border-top-left-radius: 7px;border-top-right-radius: 7px;">
                    <h5 class="modal-title" style="line-height: 40px;width: 40%;text-align: center;color: #ffffff;">
                        提示对话框
                    </h5>
                    <button id="close-model2" type="button" class="close" data-dismiss="modal" aria-label="Close" style="margin-right: 3%;line-height: 40px;">
                        <span aria-hidden="true" style="font-size: 28px;color: white;">&times;</span>
                    </button>
                </div>
                <div class="modal-body" style="height: 50px;line-height: 60px;text-align: center;">
                    <p id="Confirm-content"></p>
                </div>
            </div>
        </div>
    </div>
{% endblock %}


{% block script %}
    <script type="text/javascript" src="../../static/administrative/js/layer.js"></script>
    <script>
        document.getElementById("administrative").className = "add-nav-active";
        document.getElementById("todo-document").className = "add_class";
        document.getElementById("organizational_management_ul").style.display = "inline-block";
        document.getElementById("jiantou").className = "iconfont icon-jiantou-xia";

        var examine_dict = {{ examine_dict | safe }};
        var current_node = "{{ examine_dict.current_node | safe }}";
        var task_executor = "{{ examine_dict.task_executor | safe }}";
        var realname = "{{ realname | safe }}";
        var have = "{{ have | safe }}";
        var monitoring = "{{ monitoring | safe }}";
        var post_single = {{ examine_dict.post_single | safe }};
        var approve = '{{ approve | safe }}';
        var achieve = '{{ achieve | safe }}';
        var post_single_status = '{{ post_single_status | safe }}';

        function show_or_not() {
            if (document.getElementById("male").checked) {
                document.getElementById("chose_model").style.display = "table-row";
            }else {
                document.getElementById("chose_model").style.display = "none";
            }
        }

        function admin_add(title,url,w,h){
            layer_show(title,url,w,h);
        }

        function layer_show(title,url,w,h){
            if (title == null || title == '') {
                title=false;
            };
            if (url == null || url == '') {
                url="404.html";
            };
            if (w == null || w == '') {
                w=800;
            };
            if (h == null || h == '') {
                h=($(window).height() - 50);
            };
            layer.open({
                type: 2,
                area: [w+'px', h +'px'],
                fix: false, //不固定
                maxmin: true,
                shade:0.4,
                title: title,
                content: url
            });
        }

        function layer_close(){
            var index = parent.layer.getFrameIndex(window.name);
            parent.layer.close(index);
        }

        if(post_single_status==='2'){
            document.getElementById('submit_div').style.display = "inline-block";
        }

        function del_original() {
            document.getElementById("main_body_a").innerHTML = "";
            document.getElementById("main_body_a").setAttribute("href", "#");
        }

        var document_list = {{ document_list | safe }};
        var accessory_list = {{ accessory_list | safe }};

        for (var JJ=0; JJ<document_list.length; JJ++){
            var TTables = document.getElementById("TTables");
            var tr_1 = document.createElement("tr");
            var td_0 = document.createElement("td");var td_1 = document.createElement("td");var td_2 = document.createElement("td");var td_3 = document.createElement("td");var td_4 = document.createElement("td");var td_5 = document.createElement("td");var td_6 = document.createElement("td");
            td_6.innerHTML = "删除";td_6.style.textAlign = "center";td_6.setAttribute("onclick", "del_table()");td_6.style.color='#089bab';td_6.style.cursor="pointer";
            {#td.innerHTML = "<input id='"+JsonData["file_name"]+"' class='check_box' type=\"checkbox\">";td.style.textAlign = "center";#}
            td_1.innerHTML = TTables.children.length+1;td_1.style.textAlign = "center";
            td_2.innerHTML = "<a href='"+document_list[JJ]["file_url"]+"'>"+document_list[JJ]["file_name"]+"</a>";td_2.style.paddingLeft = "1%";
            td_3.innerHTML = document_list[JJ]["file_size"];td_3.style.paddingLeft = "1%";
            tr_1.appendChild(td_1);tr_1.appendChild(td_2);tr_1.appendChild(td_3);tr_1.appendChild(td_6);
            TTables.appendChild(tr_1);
        }

        for (var YY=0; YY<accessory_list.length; YY++){
            var TTables_1 = document.getElementById("TTables_1");
            var tr__1 = document.createElement("tr");
            var td__0 = document.createElement("td");var td__1 = document.createElement("td");var td__2 = document.createElement("td");var td__3 = document.createElement("td");var td__4 = document.createElement("td");var td__5 = document.createElement("td");var td__6 = document.createElement("td");
            td__6.innerHTML = "删除";td__6.style.textAlign = "center";td__6.setAttribute("onclick", "del_table1()");td__6.style.color='#089bab';td__6.style.cursor="pointer";
            {#td.innerHTML = "<input id='"+JsonData["file_name"]+"' class='check_box' type=\"checkbox\">";td.style.textAlign = "center";#}
            td__1.innerHTML = TTables_1.children.length+1;td__1.style.textAlign = "center";
            td__2.innerHTML = "<a href='"+accessory_list[YY]["file_url"]+"'>"+accessory_list[YY]["file_name"]+"</a>";td__2.style.paddingLeft = "1%";
            td__3.innerHTML = accessory_list[YY]["file_size"];td__3.style.paddingLeft = "1%";
            tr__1.appendChild(td__1);tr__1.appendChild(td__2);tr__1.appendChild(td__3);tr__1.appendChild(td__6);
            TTables_1.appendChild(tr__1);
        }


        // 上传附件
        function upload_accessory(upload_type, table_id) {
            var form = new FormData();
            var files = document.getElementById(upload_type).files[0];
            form.append("file", files);
            form.append("upload_type", upload_type);
            var xhr = new XMLHttpRequest();
            var local_host = window.location.host;          // 获取当前IP
            xhr.open('post', "/administrative/upload_accessory", true);
            xhr.send(form);
            xhr.onreadystatechange = function () {
                if (xhr.readyState === 4) {
                    if (xhr.status === 200) {
                        document.getElementById("loading").style.display = "none";
                        var JsonDate = JSON.parse(xhr.responseText);
                        creat_table(JsonDate["data"][0], table_id);
                    }
                }
            };
        }

        // 创建附件列表
        function creat_table(JsonData, table_id) {
            var t_table = document.getElementById(table_id);
            var tr = document.createElement("tr");
            var td = document.createElement("td");var td1 = document.createElement("td");var td2 = document.createElement("td");var td3 = document.createElement("td");var td4 = document.createElement("td");var td5 = document.createElement("td");var td6 = document.createElement("td");
            if (table_id === "TTables") {
                del_table();
                td6.innerHTML = "<a href='#' onclick='del_table()'>删除</a>";td6.style.textAlign = "center";
            }else {
                td6.innerHTML = "删除";td6.style.textAlign = "center";td6.setAttribute("onclick", "del_table1()");td6.style.color='#089bab';td6.style.cursor="pointer";
            }
            {#td.innerHTML = "<input id='"+JsonData["file_name"]+"' class='check_box' type=\"checkbox\">";td.style.textAlign = "center";#}
            td1.innerHTML = t_table.children.length+1;td1.style.textAlign = "center";
            td2.innerHTML = "<a href='"+JsonData["file_url"]+"'>"+JsonData["file_name"]+"</a>";td2.style.paddingLeft = "1%";
            td3.innerHTML = JsonData["file_size"];td3.style.paddingLeft = "1%";
            tr.appendChild(td1);tr.appendChild(td2);tr.appendChild(td3);tr.appendChild(td6);
            t_table.appendChild(tr);
        }

        function del_table() {
            var tb_tag = document.getElementById('TTables');
            var rowNum=tb_tag.rows.length;
            for (i=0;i<rowNum;i++) {
                tb_tag.deleteRow(i);
                rowNum=rowNum-1;
                i=i-1;
            }
        }

        function del_table1() {
            var tb_tag1 = document.getElementById('TTables_1');
            var tds = event.srcElement;
            tb_tag1.deleteRow(tds.parentElement.rowIndex-1);
        }

        function update_docment() {
            document.getElementById("loading").style.display = "inline-block";
            {#var main_body_href = document.getElementById("main_body_a").getAttribute("href");#}
            var document_id = window.location.href.split("id=")[1].replace("#", '');
            var xhr = new XMLHttpRequest();
            var local_host = window.location.host;          // 获取当前IP
            {#var obj = document.getElementById("model_name"); //定位id#}
            {#var index = obj.selectedIndex; // 选中索引#}
            model_name = "京山市人民医院文件(文件-院办)";
            var model_NUm = "1";
            if (document.getElementById("male").checked) {
                if (model_name === "京山市人民医院文件(文件-院办)") {
                    model_NUm = "1"
                } else if (model_name === "华中科技大学协和京山医院文件") {
                    model_NUm = "2"
                } else if (model_name === "华中科技大学协和京山医院(纪要-院办)") {
                    model_NUm = "3"
                } else if (model_name === "华中科技大学协和京山医院京山市人民医院") {
                    model_NUm = "4"
                } else if (model_name === "中共京山市人民医院委员会(纪要-党办)") {
                    model_NUm = "5"
                } else {
                    model_NUm = "6"            // 模版名称
                }
            }

            // 获取正文链接
            MainBodyHref = get_body_link();

            // 获取附件列表
            Attachment = attachmentList();

            console.log(MainBodyHref)
            console.log(Attachment)

            xhr.open('post', "/administrative/examine.html", true);
            xhr.setRequestHeader('content-type', 'application/x-www-form-urlencoded');
            xhr.send("main_body_href="+String(MainBodyHref)+"&id="+String(document_id)+"&model_NUm="+String(model_NUm)+"&Attachment="+JSON.stringify(Attachment));
            xhr.onreadystatechange = function () {
                if (xhr.readyState === 4) {
                    if (xhr.status === 200) {
                        document.getElementById("loading").style.display = "none";
                        var JsonDate = JSON.parse(xhr.responseText);
                        alert(JsonDate['message'])
                        if (JsonDate['code'] === 200){
                            window.location.href="/administrative/my_draft.html";
                        }

                    }
                }
             };
        }

        // 获取正文链接
        function get_body_link() {
            var tables_2 = document.getElementById("TTables");
            var rowNum2 = tables_2.rows.length;
            var maind_href = "#";
            for (i=0;i<rowNum2;i++) {
                maind_href = tables_2.rows[i].cells[1].childNodes[0].getAttribute('href');
            }
            return maind_href
        }

        // 获取附件列表
        function attachmentList() {
            var tables_3 = document.getElementById("TTables_1");
            var rowNum3 = tables_3.rows.length;
            var att_list = [];
            for (i=0;i<rowNum3;i++) {
                att_list.push(tables_3.rows[i].cells[1].childNodes[0].getAttribute('href'))
            }
            return att_list
        }


        if (examine_dict["types"] === "1"){
            document.getElementById("manuscript_paper_1").style.display = "inline-block";
            document.getElementById("manuscript_paper_2").style.display = "none";
            document.getElementById("manuscript_paper_3").style.display = "none";
            document.getElementById("manuscript_paper_4").style.display = "none";
            {#document.getElementById("print").setAttribute("onclick", "but_click('manuscript_paper_1')")#}
            document.getElementById("is_department").innerHTML = examine_dict["is_department"];
            document.getElementById("drafter").innerHTML = examine_dict["drafter"];
            document.getElementById("cc_unit").innerHTML = examine_dict["cc_unit"];
            document.getElementById("post_number").innerHTML = examine_dict["post_name"];
            document.getElementById("printed_copies").innerHTML = examine_dict["printed_copies"];
            document.getElementById("title").innerHTML = examine_dict["title"];
            if (current_node === "发文核稿") {
                document.getElementById("FW-hegao").style.color = "#00d0ff";
            }else if (current_node === "分管领导") {
                document.getElementById("FG_leader").style.color = "#00d0ff";
                tianchong_data("signature_Reviewer")
            }else if (current_node === "发文会签") {
                document.getElementById("QF_countersign").style.color = "#00d0ff";
                tianchong_data("signature_Reviewer", "signature_of_leaders", "signature_Countersigned")
            }else if (current_node === "发文签发") {
                document.getElementById("FW_issue").style.color = "#00d0ff";
                tianchong_data("signature_Reviewer", "signature_of_leaders", "signature_Countersigned")
            }else {
                document.getElementById("FF_chromatography").style.color = "#00d0ff";
                tianchong_data("signature_Reviewer", "signature_of_leaders", "signature_Countersigned", "signature_issuer")
            }
        }else if (examine_dict["types"] === "2"){
            document.getElementById("manuscript_paper_1").style.display = "none";
            document.getElementById("manuscript_paper_2").style.display = "inline-block";
            document.getElementById("manuscript_paper_3").style.display = "none";
            document.getElementById("manuscript_paper_4").style.display = "none";
            {#document.getElementById("print").setAttribute("onclick", "but_click('manuscript_paper_2')")#}
            document.getElementById("title_1").innerHTML = examine_dict["title"];
            document.getElementById("lord_send_unit_1").setAttribute("placeholder", examine_dict["lord_send_unit"]);
            document.getElementById("cc_unit_1").setAttribute("placeholder", examine_dict["cc_unit"]);
            document.getElementById("drafter_1").setAttribute("placeholder", examine_dict["drafter"]);
            document.getElementById("printed_copies_1").setAttribute("placeholder", examine_dict["printed_copies"]);
            document.getElementById("accessory_2").setAttribute("placeholder", examine_dict["accessory"]);
            document.getElementById("post_number_2").setAttribute("placeholder", examine_dict["post_name"]);
            document.getElementById("huiqian").style.display = "none";
            document.getElementById("huiqian_arrows").style.display = "none";
            if (current_node === "发文核稿") {
                document.getElementById("FW-hegao").style.color = "#00d0ff";
            }else if (current_node === "分管领导") {
                document.getElementById("FG_leader").style.color = "#00d0ff";
                document.getElementById("huihe_or_not").style.display = "none";
                if (approve){
                    document.getElementById("fenguan_or_not").style.visibility = "visible";
                }
                tianchong_data("signature_issuer_2_3")
            }else if (current_node === "发文签发") {
                document.getElementById("huihe_or_not").style.display = "none";
                document.getElementById("fenguan_or_not").style.display = "none";
                document.getElementById("FW_issue").style.color = "#00d0ff";
                if (approve){
                    document.getElementById("qianfa_or_not").style.visibility = "visible";
                }
                tianchong_data("signature_issuer_2_3", "signature_issuer_2_2")
            }else {
                document.getElementById("huihe_or_not").style.display = "none";
                document.getElementById("fenguan_or_not").style.display = "none";
                document.getElementById("qianfa_or_not").style.display = "none";
                document.getElementById("FF_chromatography").style.color = "#00d0ff";
                tianchong_data("signature_issuer_2_3", "signature_issuer_2_2", "11111111", "signature_issuer_2_1")
            }
        }else if (examine_dict["types"] === "3"){
            document.getElementById("manuscript_paper_1").style.display = "none";
            document.getElementById("manuscript_paper_2").style.display = "none";
            document.getElementById("manuscript_paper_3").style.display = "inline-block";
            document.getElementById("manuscript_paper_4").style.display = "none";
            {#document.getElementById("print").setAttribute("onclick", "but_click('manuscript_paper_3')");#}
            document.getElementById("wenhao_3").innerHTML = examine_dict["post_name"];
            document.getElementById("accuracy_class_1").innerHTML = examine_dict["accuracy_class"];
            document.getElementById("printed_copies_2").innerHTML = examine_dict["printed_copies"];
            document.getElementById("title_2").innerHTML = examine_dict["title"];
            document.getElementById("lord_send_unit_2").innerHTML = examine_dict["lord_send_unit"];
            document.getElementById("cc_unit_2").innerHTML = examine_dict["cc_unit"];
            document.getElementById("accessory_1").innerHTML = examine_dict["accessory"];
            document.getElementById("is_department_2").innerHTML = examine_dict["is_department"];
            document.getElementById("drafter_2").innerHTML = examine_dict["drafter"];
            document.getElementById("year-1").setAttribute("placeholder", examine_dict["year"]);
            document.getElementById("month-1").setAttribute("placeholder", examine_dict["month"]);
            document.getElementById("day-1").setAttribute("placeholder", examine_dict["day"]);
            if (current_node === "发文核稿") {
                document.getElementById("FW-hegao").style.color = "#00d0ff";
            }else if (current_node === "分管领导") {
                document.getElementById("FG_leader").style.color = "#00d0ff";
                document.getElementById("hegao_3").style.display = "none";
                document.getElementById("year-2").setAttribute("placeholder", post_single['发文核稿'][0]["approveTime"].split("-")[0])
                document.getElementById("month-2").setAttribute("placeholder", post_single['发文核稿'][0]["approveTime"].split("-")[1])
                document.getElementById("day-2").setAttribute("placeholder", post_single['发文核稿'][0]["approveTime"].split("-")[2].split(" ")[0])
                if (approve){
                    document.getElementById("fenguan_3").style.visibility = "visible";
                }
                tianchong_data("signature_issuer_3_1")
            }else if (current_node === "发文会签") {
                document.getElementById("QF_countersign").style.color = "#00d0ff";
                document.getElementById("hegao_3").style.display = "none";
                document.getElementById("fenguan_3").style.display = "none";
                document.getElementById("year-2").setAttribute("placeholder", post_single['发文核稿'][0]["approveTime"].split("-")[0])
                document.getElementById("month-2").setAttribute("placeholder", post_single['发文核稿'][0]["approveTime"].split("-")[1])
                document.getElementById("day-2").setAttribute("placeholder", post_single['发文核稿'][0]["approveTime"].split("-")[2].split(" ")[0])
                document.getElementById("year-3").setAttribute("placeholder", post_single['分管领导'][0]["approveTime"].split("-")[0])
                document.getElementById("month-3").setAttribute("placeholder", post_single['分管领导'][0]["approveTime"].split("-")[1])
                document.getElementById("day-3").setAttribute("placeholder", post_single['分管领导'][0]["approveTime"].split("-")[2].split(" ")[0])
                if (approve){
                    document.getElementById("huiqian_3").style.visibility = "visible";
                }
                tianchong_data("signature_issuer_3_1", "signature_issuer_3_2", "signature_issuer_3_3")
            }else if (current_node === "发文签发") {
                document.getElementById("hegao_3").style.display = "none";
                document.getElementById("fenguan_3").style.display = "none";
                document.getElementById("huiqian_3").style.display = "none";
                document.getElementById("FW_issue").style.color = "#00d0ff";
                document.getElementById("year-2").setAttribute("placeholder", post_single['发文核稿'][0]["approveTime"].split("-")[0])
                document.getElementById("month-2").setAttribute("placeholder", post_single['发文核稿'][0]["approveTime"].split("-")[1])
                document.getElementById("day-2").setAttribute("placeholder", post_single['发文核稿'][0]["approveTime"].split("-")[2].split(" ")[0])
                document.getElementById("year-3").setAttribute("placeholder", post_single['分管领导'][0]["approveTime"].split("-")[0])
                document.getElementById("month-3").setAttribute("placeholder", post_single['分管领导'][0]["approveTime"].split("-")[1])
                document.getElementById("day-3").setAttribute("placeholder", post_single['分管领导'][0]["approveTime"].split("-")[2].split(" ")[0])
                if (approve){
                    document.getElementById("qianfa_3").style.visibility = "visible";
                }
                tianchong_data("signature_issuer_3_1", "signature_issuer_3_2", "signature_issuer_3_3")
            }else {
                document.getElementById("FF_chromatography").style.color = "#00d0ff";
                document.getElementById("hegao_3").style.display = "none";
                document.getElementById("fenguan_3").style.display = "none";
                document.getElementById("huiqian_3").style.display = "none";
                document.getElementById("qianfa_3").style.display = "none";
                document.getElementById("year-2").setAttribute("placeholder", post_single['发文核稿'][0]["approveTime"].split("-")[0])
                document.getElementById("month-2").setAttribute("placeholder", post_single['发文核稿'][0]["approveTime"].split("-")[1])
                document.getElementById("day-2").setAttribute("placeholder", post_single['发文核稿'][0]["approveTime"].split("-")[2].split(" ")[0])
                document.getElementById("year-3").setAttribute("placeholder", post_single['分管领导'][0]["approveTime"].split("-")[0])
                document.getElementById("month-3").setAttribute("placeholder", post_single['分管领导'][0]["approveTime"].split("-")[1])
                document.getElementById("day-3").setAttribute("placeholder", post_single['分管领导'][0]["approveTime"].split("-")[2].split(" ")[0])
                document.getElementById("year-4").setAttribute("placeholder", post_single['发文签发'][0]["approveTime"].split("-")[0])
                document.getElementById("month-4").setAttribute("placeholder", post_single['发文签发'][0]["approveTime"].split("-")[1])
                document.getElementById("day-4").setAttribute("placeholder", post_single['发文签发'][0]["approveTime"].split("-")[2].split(" ")[0])
                tianchong_data("signature_issuer_3_1", "signature_issuer_3_2", "11111111", "signature_issuer_3_4")
            }
        }else {
            document.getElementById("manuscript_paper_1").style.display = "none";
            document.getElementById("manuscript_paper_2").style.display = "none";
            document.getElementById("manuscript_paper_3").style.display = "none";
            document.getElementById("manuscript_paper_4").style.display = "inline-block";
            {#document.getElementById("print").setAttribute("onclick", "but_click('manuscript_paper_4')")#}
            document.getElementById("wenhao-4").innerHTML = examine_dict["post_name"];
            document.getElementById("accuracy_class_4").innerHTML = examine_dict["accuracy_class"];
            document.getElementById("urgency_degree").innerHTML = examine_dict["urgency_degree"];
            document.getElementById("printed_copies_4").innerHTML = examine_dict["printed_copies"];
            document.getElementById("title_4").innerHTML = examine_dict["title"];
            document.getElementById("subject_term_id").innerHTML = examine_dict["subject_term"];
            document.getElementById("accessory_4").innerHTML = examine_dict["accessory"];
            document.getElementById("lord_send_unit_4").innerHTML = examine_dict["lord_send_unit"];
            document.getElementById("cc_unit_4").innerHTML = examine_dict["cc_unit"];
            document.getElementById("is_department_4").innerHTML = examine_dict["is_department"];
            document.getElementById("drafter_4").innerHTML = examine_dict["drafter"];
            document.getElementById("year-4-1").setAttribute("placeholder", examine_dict["year"]);
            document.getElementById("month-4-1").setAttribute("placeholder", examine_dict["month"]);
            document.getElementById("day-4-1").setAttribute("placeholder", examine_dict["day"]);

            if (current_node === "发文核稿") {
                document.getElementById("FW-hegao").style.color = "#00d0ff";
                if (approve){
                    document.getElementById("hegao-4-1").style.visibility = "visible";
                }
            }else if (current_node === "分管领导") {
                document.getElementById("FG_leader").style.color = "#00d0ff";
                document.getElementById("hegao-4-1").style.display = "none";
                document.getElementById("year-4-2").setAttribute("placeholder", examine_dict["year"]);
                document.getElementById("month-4-2").setAttribute("placeholder", examine_dict["month"]);
                document.getElementById("day-4-2").setAttribute("placeholder", examine_dict["day"]);
                if (approve){
                    document.getElementById("fenguan-4").style.visibility = "visible";
                }
                tianchong_data("signature_issuer_4_1")
            }else if (current_node === "发文会签") {
                document.getElementById("QF_countersign").style.color = "#00d0ff";
                document.getElementById("hegao-4-1").style.display = "none";
                document.getElementById("fenguan-4").style.display = "none";
                document.getElementById("year-4-2").setAttribute("placeholder", post_single['发文核稿'][0]["approveTime"].split("-")[0])
                document.getElementById("month-4-2").setAttribute("placeholder", post_single['发文核稿'][0]["approveTime"].split("-")[1])
                document.getElementById("day-4-2").setAttribute("placeholder", post_single['发文核稿'][0]["approveTime"].split("-")[2].split(" ")[0])
                document.getElementById("year-4-3").setAttribute("placeholder", post_single['分管领导'][0]["approveTime"].split("-")[0])
                document.getElementById("month-4-3").setAttribute("placeholder", post_single['分管领导'][0]["approveTime"].split("-")[1])
                document.getElementById("day-4-3").setAttribute("placeholder", post_single['分管领导'][0]["approveTime"].split("-")[2].split(" ")[0])
                if (approve){
                    document.getElementById("huiqian-4-1").style.visibility = "visible";
                }
                tianchong_data("signature_issuer_4_1", "signature_issuer_4_2", "signature_issuer_4_3")
            }else if (current_node === "发文签发"){
                document.getElementById("FW_issue").style.color = "#00d0ff";
                document.getElementById("hegao-4-1").style.display = "none";
                document.getElementById("fenguan-4").style.display = "none";
                document.getElementById("huiqian-4-1").style.display = "none";
                document.getElementById("year-4-2").setAttribute("placeholder", post_single['发文核稿'][0]["approveTime"].split("-")[0])
                document.getElementById("month-4-2").setAttribute("placeholder", post_single['发文核稿'][0]["approveTime"].split("-")[1])
                document.getElementById("day-4-2").setAttribute("placeholder", post_single['发文核稿'][0]["approveTime"].split("-")[2].split(" ")[0])
                document.getElementById("year-4-3").setAttribute("placeholder", post_single['分管领导'][0]["approveTime"].split("-")[0])
                document.getElementById("month-4-3").setAttribute("placeholder", post_single['分管领导'][0]["approveTime"].split("-")[1])
                document.getElementById("day-4-3").setAttribute("placeholder", post_single['分管领导'][0]["approveTime"].split("-")[2].split(" ")[0])
                if (approve){
                    document.getElementById("qianfa-4").style.visibility = "visible";
                }
                tianchong_data("signature_issuer_4_1", "signature_issuer_4_2", "signature_issuer_4_3")
            }else {
                document.getElementById("FF_chromatography").style.color = "#00d0ff";
                document.getElementById("hegao-4-1").style.display = "none";
                document.getElementById("fenguan-4").style.display = "none";
                document.getElementById("huiqian-4-1").style.display = "none";
                document.getElementById("qianfa-4").style.display = "none";
                document.getElementById("year-4-2").setAttribute("placeholder", post_single['发文核稿'][0]["approveTime"].split("-")[0])
                document.getElementById("month-4-2").setAttribute("placeholder", post_single['发文核稿'][0]["approveTime"].split("-")[1])
                document.getElementById("day-4-2").setAttribute("placeholder", post_single['发文核稿'][0]["approveTime"].split("-")[2].split(" ")[0])
                document.getElementById("year-4-3").setAttribute("placeholder", post_single['分管领导'][0]["approveTime"].split("-")[0])
                document.getElementById("month-4-3").setAttribute("placeholder", post_single['分管领导'][0]["approveTime"].split("-")[1])
                document.getElementById("day-4-3").setAttribute("placeholder", post_single['分管领导'][0]["approveTime"].split("-")[2].split(" ")[0])
                document.getElementById("signature_issuer_4_4").style.display = "block";
                tianchong_data("signature_issuer_4_1", "signature_issuer_4_2", "signature_issuer_4_3", "signature_issuer_4_4")
            }
        }

        function click_ul() {
            if (document.getElementById("jiantou").className === "iconfont icon-jiantou-shang"){
                document.getElementById("jiantou").className = "iconfont icon-jiantou-xia";
                document.getElementById("organizational_management_ul").style.display = "inline-block";
            }else {
                document.getElementById("jiantou").className = "iconfont icon-jiantou-shang";
                document.getElementById("organizational_management_ul").style.display = "none";
            }
        }

        function click_ul1() {
            if (document.getElementById("jiantou1").className === "iconfont icon-jiantou-shang"){
                document.getElementById("jiantou1").className = "iconfont icon-jiantou-xia";
                document.getElementById("gebruikersrol_ul").style.display = "inline-block";
            }else {
                document.getElementById("jiantou1").className = "iconfont icon-jiantou-shang";
                document.getElementById("gebruikersrol_ul").style.display = "none";
            }
        }

        function click_ul2() {
            if (document.getElementById("jiantou2").className === "iconfont icon-jiantou-shang"){
                document.getElementById("jiantou2").className = "iconfont icon-jiantou-xia";
                document.getElementById("meeting_management_ul").style.display = "inline-block";
            }else {
                document.getElementById("jiantou2").className = "iconfont icon-jiantou-shang";
                document.getElementById("meeting_management_ul").style.display = "none";
            }
        }

        function click_ul_9() {
            if (document.getElementById("jiantou5").className === "iconfont icon-jiantou-shang"){
                document.getElementById("jiantou5").className = "iconfont icon-jiantou-xia";
                document.getElementById("dispatch-Administrator-1").style.display = "inline-block";
            }else {
                document.getElementById("jiantou5").className = "iconfont icon-jiantou-shang";
                document.getElementById("dispatch-Administrator-1").style.display = "none";
            }
        }

        function click_ul_10() {
            if (document.getElementById("jiantou4").className === "iconfont icon-jiantou-shang"){
                document.getElementById("jiantou4").className = "iconfont icon-jiantou-xia";
                document.getElementById("dispatch-Administrator").style.display = "inline-block";
            }else {
                document.getElementById("jiantou4").className = "iconfont icon-jiantou-shang";
                document.getElementById("dispatch-Administrator").style.display = "none";
            }
        }

        if (have) {
            document.getElementById("todo-document").removeAttribute("class");
            document.getElementById("have-office").className = "add_class";
        }

        if (monitoring){
            document.getElementById("todo-document").removeAttribute("class");
            document.getElementById("dispatch-monitoring").className = "add_class";
            document.getElementById("发文会签").style.display = "none";
            document.getElementById("span_title").innerHTML = "公文监控";
        }

        if (approve){
            {#document.getElementById("print").style.display = "none";#}
            if (current_node === "发文会签") {
                document.getElementById("nuclear_opinion").style.visibility = "visible";
            }
        }

        if (achieve) {
            document.getElementById("todo-document").removeAttribute("class");
            document.getElementById("have-office").className = "add_class";
            document.getElementById("span_title").innerHTML = "已办公文";
        }

        function tianchong_data(signature_Reviewer_id="", signature_of_leaders_id="",　signature_Countersigned_id="", signature_issuer_id="") {
            // signature_Reviewer : 核稿签名图片标签ID
            // signature_of_leaders : 分管领导签名图片标签ID
            // signature_Countersigned : 会签签名图片标签ID
            // signature_issuer : 签发签名图片标签ID
            console.log(signature_Reviewer_id, signature_of_leaders_id, signature_Countersigned_id, signature_issuer_id)
            if (signature_Reviewer_id && !signature_of_leaders_id && !signature_Countersigned_id && !signature_issuer_id){
                var signature_Reviewer = document.getElementById(signature_Reviewer_id);
                for (var A=0; A<post_single['发文核稿'].length - 1; A++) {
                    var audit_picture = post_single['发文核稿'][A]["signature_picture"]
                    var img = document.createElement("img");
                    img.style.width = "100px";img.style.height = "40px";img.setAttribute("src", audit_picture);
                    signature_Reviewer.appendChild(img);
                }
            }

            if (signature_Reviewer_id && signature_of_leaders_id && !signature_Countersigned_id && !signature_issuer_id){
                var signature_Reviewer_1_1 = document.getElementById(signature_Reviewer_id);
                for (var C_1=0; C_1<post_single['发文核稿'].length - 1; C_1++) {
                    var audit_picture_1_1 = post_single['发文核稿'][C_1]["signature_picture"]
                    var img_1_1 = document.createElement("img");
                    img_1_1.style.width = "100px";img_1_1.style.height = "40px";img_1_1.setAttribute("src", audit_picture_1_1);
                    signature_Reviewer_1_1.appendChild(img_1_1);
                }

                var signature_of_leaders_1_2 = document.getElementById(signature_of_leaders_id);
                for (var D_2=0; D_2<post_single['分管领导'].length - 1; D_2++) {
                    var audit_picture_1_2 = post_single['分管领导'][D_2]["signature_picture"]
                    var img_1_2 = document.createElement("img");
                    img_1_2.style.width = "100px";img_1_2.style.height = "40px";img_1_2.setAttribute("src", audit_picture_1_2);
                    signature_of_leaders_1_2.appendChild(img_1_2);
                }
            }

            if (signature_Reviewer_id && signature_of_leaders_id && signature_Countersigned_id && !signature_issuer_id){
                var signature_Reviewer3 = document.getElementById(signature_Reviewer_id);
                for (var C=0; C<post_single['发文核稿'].length - 1; C++) {
                    var audit_picture3 = post_single['发文核稿'][C]["signature_picture"]
                    var img3 = document.createElement("img");
                    img3.style.width = "100px";img3.style.height = "40px";img3.setAttribute("src", audit_picture3);
                    signature_Reviewer3.appendChild(img3);
                }

                var signature_of_leaders4 = document.getElementById(signature_of_leaders_id);
                for (var D=0; D<post_single['分管领导'].length - 1; D++) {
                    var audit_picture4 = post_single['分管领导'][D]["signature_picture"]
                    var img4 = document.createElement("img");
                    img4.style.width = "100px";img4.style.height = "40px";img4.setAttribute("src", audit_picture4);
                    signature_of_leaders4.appendChild(img4);
                }

                var signature_Countersigned = document.getElementById(signature_Countersigned_id);

                for (var E=0; E<post_single['发文会签'].length - 1; E++) {
                    if (post_single['发文会签'][E]["status"]) {
                        var audit_picture5 = post_single['发文会签'][E]["signature_picture"]
                        var img5 = document.createElement("img");
                        img5.style.width = "120px";img5.style.height = "40px";img5.setAttribute("src", audit_picture5);
                        signature_Countersigned.appendChild(img5);
                    }
                }
            }

            if (signature_Reviewer_id && signature_of_leaders_id && signature_Countersigned_id && signature_issuer_id){
                document.getElementById("FF_chromatography").style.color = "#00d0ff";
                var signature_Reviewer6 = document.getElementById(signature_Reviewer_id);
                for (var G=0; G<post_single['发文核稿'].length - 1; G++) {
                    var audit_picture6 = post_single['发文核稿'][G]["signature_picture"]
                    document.getElementById("发文核稿").style.display = "none";
                    var img6 = document.createElement("img");
                    img6.style.width = "100px";img6.style.height = "40px";img6.setAttribute("src", audit_picture6);
                    signature_Reviewer6.appendChild(img6);
                }

                var signature_of_leaders7 = document.getElementById(signature_of_leaders_id);
                for (var H=0; H<post_single['分管领导'].length - 1; H++) {
                    var audit_picture7 = post_single['分管领导'][H]["signature_picture"]
                    document.getElementById("分管领导").style.display = "none";
                    var img7 = document.createElement("img");
                    img7.style.width = "100px";img7.style.height = "40px";img7.setAttribute("src", audit_picture7);
                    signature_of_leaders7.appendChild(img7);
                }

                if (signature_Countersigned_id !== "11111111"){
                    var signature_Countersigned8 = document.getElementById(signature_Countersigned_id);
                    for (var F=0; F<post_single['发文会签'].length - 1; F++) {
                        var audit_picture8 = post_single['发文会签'][F]["signature_picture"]
                        document.getElementById("发文会签").style.display = "none";
                        var img8 = document.createElement("img");
                        img8.style.width = "100px";img8.style.height = "40px";img8.setAttribute("src", audit_picture8);
                        signature_Countersigned8.appendChild(img8);
                    }
                }

                var signature_issuer9 = document.getElementById(signature_issuer_id);
                for (var L=0; L<post_single['发文签发'].length - 1; L++) {
                    var audit_picture9 = post_single['发文签发'][L]["signature_picture"]
                    document.getElementById("发文签发").style.display = "none";
                    var img9 = document.createElement("img");
                    img9.style.width = "100px";img9.style.height = "40px";img9.setAttribute("src", audit_picture9);
                    signature_issuer9.appendChild(img9);
                }
            }
        }

        // 提交转办
        function summit_val1() {
            document.getElementById("close-model3").click();
            var Administrative_person = document.getElementById("Administrative_person").value.trim();
            var document_id = window.location.href.split("id=")[1].replace("#", '');
            var xhr = new XMLHttpRequest();
            var local_host = window.location.host;          // 获取当前IP
            xhr.open('post', "/administrative/approval_opinion", true);
            xhr.setRequestHeader('content-type', 'application/x-www-form-urlencoded');
            xhr.send("Administrative_person="+String(Administrative_person)+"&document_id="+String(document_id)+"&current_node="+String(current_node));
            xhr.onreadystatechange = function () {
                if (xhr.readyState === 4) {
                    if (xhr.status === 200) {
                        document.getElementById("loading").style.display = "none";
                        var JsonDate = JSON.parse(xhr.responseText);
                        window.location = "/administrative/todo_document.html";
                    }
                }
            };
        }

        function but_click(ele_id) {
            bdhtml=document.getElementById(ele_id).innerHTML;
            sprnstr="<!--startprint-->";   //开始打印标识字符串有17个字符
            eprnstr="<!--endprint-->";        //结束打印标识字符串
            prnhtml=bdhtml.substr(bdhtml.indexOf(sprnstr)+17); //从开始打印标识之后的内容
            prnhtml=prnhtml.substring(0,prnhtml.indexOf(eprnstr));//截取开始标识和结束标识之间的内容
            var iframe = null;
            iframe = document.getElementById("iframe1");

            var htmlToPrint = '' +
                '<style type="text/css">' +
                'table {'+
                'border-collapse:collapse;' +
                '}' +
                '</style>';
            htmlToPrint += prnhtml;
            var iwindow = null;
            var iwindow = iframe.contentWindow;//获取iframe的window对象
            iwindow.document.close();
            iwindow.document.write(htmlToPrint);
            iwindow.print(); //调用浏览器的打印功能打印指定区域
        }
    </script>
{% endblock %}
